/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 87111
 * Date: 2025-08-28
 * Time: 11:53
 */

class Person<E extends Comparable<E>> {

}

class Util {
    public static<E> void swap(E[] arr, int a, int b ) {
        E t = arr[a];
        arr[a] = arr[b];
        arr[b] = t;
    }
}
public class Test01 {
    public static void main(String[] args) {
        Integer[] arr = {1,2,3,4};
        Util.<Integer>swap(arr,1,2);

    }
}
